/*
 *  Copyright 2019-2020 Zheng Jie
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package me.zhengjie.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.util.ruoyiexcel.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author LongYang
 * @website https://el-admin.vip
 * @description /
 * @date 2021-06-28
 **/
@Data
@TableName("kw_exam_student")
@ApiModel(value = "ExamStudent", description = "考场考生安排表实体类")
public class ExamStudent {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "系统id")
    private Integer id;

    @ApiModelProperty(value = "考试id")
    private Integer examId;

    @ApiModelProperty(value = "准考证号")
    @Excel(name = "准考证号")
    private String examinee;

    @ApiModelProperty(value = "考生id")
    private Integer studentId;

    @ApiModelProperty(value = "身份证号")
    @Excel(name = "身份证号")
    private String idCard;

    @ApiModelProperty(value = "考生姓名")
    @Excel(name = "考生姓名")
    private String nameCn;

    @ApiModelProperty(value = "考场id")
    private Integer examRoomId;

    @ApiModelProperty(value = "座位号")
    @Excel(name = "座位号")
    private String seat;

    @ApiModelProperty(value = "成绩")
    @Excel(name = "成绩")
    private String score;

    @ApiModelProperty(value = "成绩复核状态（0：未申请，1：已申请，2：通过，3：拒绝，4：已复核）")
    @Excel(name = "成绩复核状态", readConverterExp = "0=未申请,1=已申请,2=通过,3=拒绝,4=已复核")
    private String scoreStatus = "0";

    @ApiModelProperty(value = "成绩复核回复说明")
    @Excel(name = "成绩复核回复说明")
    private String scoreReviewBack;

    @ApiModelProperty(value = "成绩复核申请理由")
    @Excel(name = "成绩复核申请理由")
    private String scoreReviewReson;

    @ApiModelProperty(value = "成绩证明状态（0：未申请，1：已申请，2：通过，3：拒绝，4：已处理）")
    @Excel(name = "成绩证明状态", readConverterExp = "0=未申请,1=已申请,2=通过,3=拒绝,4=已处理")
    private String status = "0";

    @ApiModelProperty(value = "删除标识（0：未删除，2：已删除）")
    private String delFlag;

    @ApiModelProperty(value = "考生手机号")
    @Excel(name = "考生手机号")
    private String phone;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建日期")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "成绩证明申请理由")
    private String statusProveReason;


}